function onPageLoad() {
    setTimeout(() => { 

    var allImages = document.getElementsByTagName("img");
	

    var images = [];
    for (var i = 0, len = allImages.length; i < len; i++) {
        if (allImages[i].alt == "Аватар пользователя") {
            images.push(allImages[i]);
        }
    }
    console.log(images)

    
    images.forEach(img => {
       let currentSrc = img.src;
       let newSrc = currentSrc + "&s=512";
       img.src = newSrc;
    });
    }, 1000)
}
document.addEventListener('DOMContentLoaded', onPageLoad)
window.addEventListener('load', onPageLoad);
